文档
v-for指令可以绑定数组的数据来渲染一个项目列表
v-for
v-for指令需要使用item in items形式的特殊语法,items是源数据数组并且item是数组元素迭代的别名。
item in items
items
item
{{ todo.text }}
效果
{{ todo.text }}-{{index}}
{{ value }}
{{ item.title }}~~~{{item.author}}~~~{{item.publishedAt}}